﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml;

public partial class Public_test_Index : System.Web.UI.Page
{
    //GMS.Utils.ServiceContext.OperationPrincipal op = new     GMS.Utils.ServiceContext.OperationPrincipal();
    protected void Page_Load(object sender, EventArgs e)
    {
        //op = Session["OperationPrincipal"] as GMS.Utils.ServiceContext.OperationPrincipal;
        //if (Session["_UserInfo"] == null)
        //{
        //    Response.Write("<script>javascript:top.location.href='../Login.aspx';</script>");
        //    return;
        //}
        //if (!IsPostBack)
        //{
        //    string sql ="select * from tab_maps where citycode=";
        //    DataTable dt = null;
        //    //
        //    if (op.CitySelected.Length < 6)
        //    {
        //        map.Src = "../images/Main/maps/" + op.CitySelected.Replace("'", "") + ".jpg";
        //        sql += op.CitySelected;
        //        dt = Maticsoft.DBUtility.DbHelperSQL.DataTable(sql);
        //    }
        //    if (dt != null)
        //    {
        //        if(dt.Rows.Count>0)
        //        {
        //            title.InnerHtml = dt.Rows[0]["title"].ToString();
        //            info.InnerHtml = dt.Rows[0]["info"].ToString();
        //        }
        //    }

        //    string addContent = "";
        //    string content =  SysSettings.GetLinks();
            
        //    string[] Links = content.Split(';');
        //    for (int j = 0; j < Links.Length; j++)
        //    {
        //        string[] show = Links[j].Split('|');
        //        if (show.Length == 1)
        //        {
        //            addContent += "<a class=\"FriendLink\" href=\"http://" + show[0] + "\" target='_blank' >" + show[0]  + "</a><br />";
        //        }
        //        if (show.Length >= 2)
        //        {
        //            addContent += "<a class=\"FriendLink\" href=\"http://" + show[0] + "\" target='_blank' >" + show[1] + "</a><br />";
        //        }
                
        //    }
        //    Link.InnerHtml += addContent;

        //}
    }
}
